/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
*/

package katel;

import javax.swing.*;

/**
 *
 * @author gustavokatel
 */
public class Exercicio3_4 {

    public static void main(String[] args)
    {
        ContatoComercial co = new ContatoComercial();
        
        co.setCargo( JOptionPane.showInputDialog("Cargo:") );
        co.setEmpresa( JOptionPane.showInputDialog("Empresa:") );
        co.setNome( JOptionPane.showInputDialog("Nome:") );
        co.setTelefone( JOptionPane.showInputDialog("Telefone:") );
        
        JOptionPane.showMessageDialog(null, co.toString(), "Contato",JOptionPane.WARNING_MESSAGE);
        
    }
    
}
